Skip to content

chore: add dev:cave script for local Salem ↔ Cave integration#6

Merged
BunsDev merged 1 commit into
mainfrom
salem-opencoven-port
Jun 19, 2026
Merged

chore: add dev:cave script for local Salem ↔ Cave integration#6
BunsDev merged 1 commit into
mainfrom
salem-opencoven-port

Conversation

@BunsDev

@BunsDev BunsDev commented Jun 19, 2026

Copy link
Copy Markdown
Member

Summary

Adds a dev:cave npm script so this chat API can run on port 3001, pairing with the Coven Cave dev server (which owns port 3000).

"dev:cave": "next dev -p 3001"

Why

Coven Cave's /api/salem route proxies to this API via SALEM_CHAT_API_URL. Because both projects default to next dev on port 3000, running them together requires this API on a non-colliding port. bun run dev:cave makes that a one-command pairing for local development:

# this repo — Salem's brain
bun run dev:cave        # :3001

# coven-cave — owns :3000
pnpm dev                # SALEM_CHAT_API_URL=http://localhost:3001

No behavior change to the API itself; this is a dev-ergonomics addition only.

🤖 Generated with Claude Code

Runs the chat API on :3001 so it can pair with Coven Cave's dev server
(which owns :3000) when Cave's /api/salem proxies to SALEM_CHAT_API_URL.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 19, 2026 08:30
@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
opencoven-chat-api Ready Ready Preview Jun 19, 2026 8:30am

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a dedicated dev:cave npm script to run this Next.js chat API on port 3001 for local integration alongside Coven Cave’s dev server on 3000, avoiding port collisions during paired development.

Changes:

  • Add dev:cave script (next dev -p 3001) to package.json.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@BunsDev BunsDev merged commit f387dc3 into main Jun 19, 2026
2 checks passed
@BunsDev BunsDev deleted the salem-opencoven-port branch June 21, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants